.class Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity$1;
.super Ljava/lang/Object;
.source "LetMeAndroidThatForYouActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;


# direct methods
.method constructor <init>(Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity$1;->this$0:Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;

    .line 73
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 6
    .parameter "v"

    .prologue
    const/4 v5, 0x1

    .line 76
    iget-object v0, p0, Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity$1;->this$0:Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;

    invoke-static {v0}, Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;->access$0(Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;)Landroid/widget/EditText;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-interface {v0}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v0

    if-lez v0, :cond_0

    .line 77
    iget-object v0, p0, Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity$1;->this$0:Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;

    invoke-static {v0}, Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;->access$1(Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;)Landroid/text/ClipboardManager;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-static {}, Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;->access$2()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v2, p0, Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity$1;->this$0:Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;

    invoke-static {v2}, Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;->access$0(Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;)Landroid/widget/EditText;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v2

    invoke-interface {v2}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v2

    const-string v3, " "

    const-string v4, "+"

    invoke-virtual {v2, v3, v4}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/text/ClipboardManager;->setText(Ljava/lang/CharSequence;)V

    .line 78
    iget-object v0, p0, Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity$1;->this$0:Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;

    invoke-virtual {v0}, Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    iget-object v1, p0, Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity$1;->this$0:Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;

    invoke-virtual {v1}, Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f050001

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1, v5}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    .line 82
    :goto_0
    return-void

    .line 80
    :cond_0
    iget-object v0, p0, Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity$1;->this$0:Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;

    invoke-virtual {v0}, Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    iget-object v1, p0, Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity$1;->this$0:Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;

    invoke-virtual {v1}, Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f050006

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1, v5}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto :goto_0
.end method
